<template>
  <ant-modal
    modalWidth="600"
    modalHeight="520"
    :visible="open"
    modal-title="费用管理确认"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model
      ref="form"
      :model="form"
      :rules="rulesCaiwu"
      slot="content"
      :layout="layout"
      v-bind="{
        labelCol: { span: 8 },
        wrapperCol: { span: 16 },
      }"
    >
      <a-row :gutter="32" style="width: 80%; margin-left: 7%">
        <a-col :span="24">
          <a-form-model-item label="进件编号" prop="jinjianId">
            <a-input
              v-model="form.jinjianId"
              placeholder="请输入进件编号"
              disabled
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="24">
          <a-form-model-item label="签约金额" prop="fkAmount">
            <a-input-number
              v-model="form.fkAmount"
              :min="0"
              style="width: 100%"
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="24">
          <a-form-model-item label="提交收入金额" prop="serviceAmount">
            <a-input-number
              v-model="form.serviceAmount"
              :min="0"
              style="width: 100%"
            />
          </a-form-model-item>
        </a-col>

        <a-col :span="24">
          <a-form-model-item label="确认收入金额" prop="serviceAmountCheck">
            <a-input-number
              v-model="form.serviceAmountCheck"
              :min="0"
              style="width: 100%"
            />
          </a-form-model-item>
        </a-col>

        <a-col :span="24">
          <a-form-model-item label="财务确认" prop="caiwuCheck">
            <a-select
              placeholder="请选择财务确认"
              v-model="form.caiwuCheck"
              :getPopupContainer="
                (triggerNode) => {
                  return triggerNode.parentNode || document.body;
                }
              "
              style="width: 100%"
              allow-clear
            >
              <a-select-option
                v-for="(d, index) in caiwuCheckOptions"
                :key="index"
                :value="d.dictValue"
                >{{ d.dictLabel }}</a-select-option
              >
            </a-select>
          </a-form-model-item>
        </a-col>
        <a-col :span="24">
          <a-form-model-item label="收款备注" prop="remark">
            <a-input
              type="textarea"
              v-model="form.remark"
              placeholder="请输入收款备注"
            />
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button @click="cancel"> 取消 </a-button>
      <a-button type="primary" @click="submitForm"> 保存 </a-button>
    </template>
  </ant-modal>
</template>
<script>
import BizJinjianBillAddForm from "./BizJinjianBillForm";
export default {
  ...BizJinjianBillAddForm,
};
</script>
